package com.wy.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.wy.model.City;
import com.wy.dao.CityDao;
import com.wy.service.CityService;

@Service
public class CityServiceImpl implements CityService {

	@Resource
	private CityDao cityDao;

	/**
	 * 新增
	 */
	@Override
	public int insert(City city) {
		return cityDao.insert(city);
	}

	/**
	 * 修改
	 */
	@Override
	public int update(City city) {
		return cityDao.update(city);
	}

	/**
	 * 根据ID删除
	 */
	@Override
	public int deletebth(String[] ids) {
		return cityDao.deletebth(ids);
	}

	/**
	 * 根据ID查询单条详情
	 */
	@Override
	public City getById(String id) {
		return cityDao.getById(id);
	}

	/**
	 * 查询列表
	 */
	@Override
	public List<City> list(City city) {
		return cityDao.list(city);
	}

}